home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_qt.idb / usr / freeware / catman / p_man / cat3 / qbutton.Z / qbutton
Encoding:
Text File  |  1998-10-28  |  31.9 KB  |  595 lines

  1.  
  2.  
  3.  
  4.      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       QButton - The    abstract base class of button widgets,
  10.       providing functionality common to buttons
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <qbutton.h>
  14.  
  15.       Inherits QWidget.
  16.  
  17.       Inherited by QCheckBox, QPushButton, QRadioButton and
  18.       QToolButton.
  19.  
  20.     PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
  21.       QQQQBBBBuuuuttttttttoooonnnn (((( QQQQWWWWiiiiddddggggeeeetttt **** _p_a_r_e_n_t====0000,,,,    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** _n_a_m_e====0000 ))))
  22.       ~~~~QQQQBBBBuuuuttttttttoooonnnn ()
  23.       ccccoooonnnnsssstttt    cccchhhhaaaarrrr**** tttteeeexxxxtttt (((()))) ccccoooonnnnsssstttt
  24.       vvvvooooiiiidddd sssseeeettttTTTTeeeexxxxtttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ))))
  25.       ccccoooonnnnsssstttt    QQQQPPPPiiiixxxxmmmmaaaapppp**** ppppiiiixxxxmmmmaaaapppp    (((()))) ccccoooonnnnsssstttt
  26.       vvvvooooiiiidddd sssseeeettttPPPPiiiixxxxmmmmaaaapppp (((( ccccoooonnnnsssstttt QQQQPPPPiiiixxxxmmmmaaaapppp &&&& ))))
  27.       iiiinnnntttt aaaacccccccceeeellll (((()))) ccccoooonnnnsssstttt
  28.       vvvvooooiiiidddd sssseeeettttAAAAcccccccceeeellll    (((( iiiinnnntttt ))))
  29.       bbbboooooooollll iiiissssTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn (((()))) ccccoooonnnnsssstttt
  30.       vvvvooooiiiidddd sssseeeettttDDDDoooowwwwnnnn (((( bbbboooooooollll ))))
  31.       bbbboooooooollll iiiissssDDDDoooowwwwnnnn (((()))) ccccoooonnnnsssstttt
  32.       bbbboooooooollll iiiissssOOOOnnnn (((()))) ccccoooonnnnsssstttt
  33.       bbbboooooooollll aaaauuuuttttooooRRRReeeessssiiiizzzzeeee (((()))) ccccoooonnnnsssstttt
  34.       vvvvooooiiiidddd sssseeeettttAAAAuuuuttttooooRRRReeeessssiiiizzzzeeee (((( bbbboooooooollll ))))
  35.       bbbboooooooollll aaaauuuuttttooooRRRReeeeppppeeeeaaaatttt (((()))) ccccoooonnnnsssstttt
  36.       vvvvooooiiiidddd sssseeeettttAAAAuuuuttttooooRRRReeeeppppeeeeaaaatttt (((( bbbboooooooollll ))))
  37.  
  38.     PPPPuuuubbbblllliiiicccc SSSSlllloooottttssss
  39.       vvvvooooiiiidddd aaaannnniiiimmmmaaaatttteeeeCCCClllliiiicccckkkk (((())))
  40.       vvvvooooiiiidddd ttttoooogggggggglllleeee (((())))
  41.  
  42.     SSSSiiiiggggnnnnaaaallllssss
  43.       vvvvooooiiiidddd pppprrrreeeesssssssseeeedddd (((())))
  44.       vvvvooooiiiidddd rrrreeeelllleeeeaaaasssseeeedddd    (((())))
  45.       vvvvooooiiiidddd cccclllliiiicccckkkkeeeedddd (((())))
  46.       vvvvooooiiiidddd ttttoooogggggggglllleeeedddd (((( bbbboooooooollll ))))
  47.  
  48.     PPPPrrrrooootttteeeecccctttteeeedddd MMMMeeeemmmmbbbbeeeerrrrssss
  49.       vvvvooooiiiidddd sssseeeettttTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn (((( bbbboooooooollll ))))
  50.       vvvvooooiiiidddd sssseeeettttOOOOnnnn (((( bbbboooooooollll ))))
  51.       vvvviiiirrrrttttuuuuaaaallll bbbboooooooollll hhhhiiiittttBBBBuuuuttttttttoooonnnn (((( ccccoooonnnnsssstttt QQQQPPPPooooiiiinnnntttt    &&&& ppppoooossss ))))    ccccoooonnnnsssstttt
  52.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ddddrrrraaaawwwwBBBBuuuuttttttttoooonnnn (((( QQQQPPPPaaaaiiiinnnntttteeeerrrr **** ))))
  53.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ddddrrrraaaawwwwBBBBuuuuttttttttoooonnnnLLLLaaaabbbbeeeellll (((( QQQQPPPPaaaaiiiinnnntttteeeerrrr **** ))))
  54.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd kkkkeeeeyyyyPPPPrrrreeeessssssssEEEEvvvveeeennnntttt (((( QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt **** ))))
  55.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd mmmmoooouuuusssseeeePPPPrrrreeeessssssssEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** ))))
  56.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd mmmmoooouuuusssseeeeRRRReeeelllleeeeaaaasssseeeeEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** ))))
  57.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd mmmmoooouuuusssseeeeMMMMoooovvvveeeeEEEEvvvveeeennnntttt ((((    QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** ))))
  58.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ppppaaaaiiiinnnnttttEEEEvvvveeeennnntttt (((( QQQQPPPPaaaaiiiinnnnttttEEEEvvvveeeennnntttt    **** ))))
  59.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ffffooooccccuuuussssIIIInnnnEEEEvvvveeeennnntttt (((( QQQQFFFFooooccccuuuussssEEEEvvvveeeennnntttt **** ))))
  60.  
  61.  
  62.  
  63.      Page 1                         (printed 9/22/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))
  71.  
  72.  
  73.  
  74.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ffffooooccccuuuussssOOOOuuuuttttEEEEvvvveeeennnntttt (((( QQQQFFFFooooccccuuuussssEEEEvvvveeeennnntttt **** ))))
  75.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd eeeennnnaaaabbbblllleeeeddddCCCChhhhaaaannnnggggeeee (((( bbbboooooooollll ))))
  76.  
  77.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  78.       The QButton class is the abstract base class of button
  79.       widgets, providing functionality common to buttons.
  80.  
  81.       The QButton class implements an abstract button, and lets
  82.       subclasses specify how to reply to user actions and how to
  83.       draw the button.
  84.  
  85.       QButton provides both    push and toggle    buttons. The
  86.       QRadioButton and QCheckBox classes provide only toggle
  87.       buttons, QPushButton and QToolButton provide both toggle and
  88.       push buttons.
  89.  
  90.       Any button can have either a text or pixmap label. setText()
  91.       sets the button to be    a text button and setPixmap() sets it
  92.       to be    a pixmap button. The text/pixmap is manipulated    as
  93.       necessary to create "disabled" appearance when the button is
  94.       disabled.
  95.  
  96.       QButton provides most    of the states used for buttons:
  97.  
  98.       isDown() determines whether the button is _p_r_e_s_s_e_d down.
  99.  
  100.      can be switched on    and off    (see below).
  101.       isOn() determines whether the    button is _o_n. Only toggle buttons
  102.  
  103.      user.
  104.       isEnabled() determines whether the button can    be pressed by the
  105.  
  106.      the user holds it down.
  107.       setAutoRepeat() determines whether the button    will auto-
  108.            repeat if
  109.  
  110.      button or not.
  111.       setToggleButton() determines whether the button is a toggle
  112.  
  113.       The difference between isDown() and isOn() is    as follows:
  114.       When the user    clicks a toggle    button to toggle it on,    the
  115.       button is first _p_r_e_s_s_e_d, then    released into _o_n state.    When
  116.       the user clicks it again (to toggle it off) the button moves
  117.       first    to the _p_r_e_s_s_e_d state, then to the _o_f_f state (isOn()
  118.       and isDown() are both    FALSE).
  119.  
  120.       Default buttons (as used in many dialogs) are    provided by
  121.       QPushButton::setDefault() and    QPushButton::setAutoDefault().
  122.  
  123.       QButton provides four    signals:
  124.  
  125.      the mouse cursor is inside    the button.
  126.  
  127.  
  128.  
  129.      Page 2                         (printed 9/22/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))
  137.  
  138.  
  139.  
  140.       pressed() is emitted when the    left mouse button is pressed while
  141.  
  142.       released() is    emitted    when the left mouse button is released.
  143.  
  144.      released, or when the accelerator key is typed, or    when
  145.      animateClick() is called.
  146.       clicked() is emitted when the    button is first    pressed    then
  147.  
  148.       toggled() is emitted when the    state of a toggle button changes.
  149.  
  150.       If the button    is a text button with "&" in its text, QButton
  151.       creates an automatic accelerator key.    This code creates a
  152.       push button labelled "Rock & Roll" (where the    c is
  153.       underscored).    The button gets    an automatic accelerator key,
  154.       Alt-C:
  155.  
  156.           QPushButton *p = new QPushButton(    "Ro&ck && Roll", this );
  157.  
  158.       In this example, when    the user presses Alt-C the button will
  159.       animate a click.
  160.  
  161.       You can also set a custom accelerator    using the setAccel()
  162.       function. This is useful mostly for pixmap buttons since
  163.       they have no automatic accelerator.
  164.  
  165.           QPushButton *p;
  166.           p->setPixmap( QPixmap("print.gif") );
  167.           p->setAccel( ALT+Key_F7 );
  168.  
  169.       All of the buttons provided by Qt (QPushButton, QToolButton,
  170.       QCheckBox and    QRadioButton) can display both text and
  171.       pixmaps.
  172.  
  173.       To subclass QButton, you have    to reimplement at least
  174.       drawButton() (to draw    the button's outskirts)    and
  175.       drawButtonLabel() (to    draw its text or pixmap). It is
  176.       generally advisable to reimplement sizeHint()    as well, and
  177.       sometimes hitButton()    (to determine whether a    button press
  178.       is within the    button).
  179.  
  180.       To reduce flickering the QButton::paintEvent() sets up a
  181.       pixmap that the drawButton() function    draws in. You should
  182.       not reimplement paintEvent() for a subclass of QButton
  183.       unless you want to take over all drawing.
  184.  
  185.       See also: QButtonGroup and Microsoft Style Guide
  186.  
  187.       Examples:  tictac/tictac.cpp
  188.  
  189.      MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDOOOOCCCCUUUUMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  190.      QQQQBBBBuuuuttttttttoooonnnn::::::::QQQQBBBBuuuuttttttttoooonnnn ((((    QQQQWWWWiiiiddddggggeeeetttt    **** ppppaaaarrrreeeennnntttt====0000,,,, ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnnaaaammmmeeee====0000    ))))
  191.       Constructs a standard    button with a parent widget and    a
  192.  
  193.  
  194.  
  195.      Page 3                         (printed 9/22/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))
  203.  
  204.  
  205.  
  206.       name.
  207.  
  208.       If _p_a_r_e_n_t is a QButtonGroup, this constructor    calls
  209.       QButtonGroup::insert().
  210.  
  211.      QQQQBBBBuuuuttttttttoooonnnn::::::::~~~~QQQQBBBBuuuuttttttttoooonnnn (((())))
  212.       Destroys the button and all its child    widgets.
  213.  
  214.      iiiinnnntttt QQQQBBBBuuuuttttttttoooonnnn::::::::aaaacccccccceeeellll    (((()))) ccccoooonnnnsssstttt
  215.       Returns the accelerator key currently    set for    the button, or
  216.       0 if no accelerator key has been set.
  217.  
  218.       See also: setAccel().
  219.  
  220.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::aaaannnniiiimmmmaaaatttteeeeCCCClllliiiicccckkkk    (((()))) [[[[ssssllllooootttt]]]]
  221.       Performs an animated click: The button is pressed and    a
  222.       short    while later released.
  223.  
  224.       pressed(), released(), clicked() and toggled() signals are
  225.       emitted as appropriate.
  226.  
  227.       This function    does nothing if    the button is disabled.
  228.  
  229.       See also: setAccel().
  230.  
  231.      bbbboooooooollll QQQQBBBBuuuuttttttttoooonnnn::::::::aaaauuuuttttooooRRRReeeeppppeeeeaaaatttt (((()))) ccccoooonnnnsssstttt
  232.       Returns TRUE if the button is    auto-repeating,    else FALSE.
  233.  
  234.       The default is FALSE.
  235.  
  236.       See also: setAutoRepeat().
  237.  
  238.      bbbboooooooollll QQQQBBBBuuuuttttttttoooonnnn::::::::aaaauuuuttttooooRRRReeeessssiiiizzzzeeee (((()))) ccccoooonnnnsssstttt
  239.       Returns TRUE if auto-resizing    is enabled, or FALSE if    auto-
  240.       resizing is disabled.
  241.  
  242.       Auto-resizing    is disabled by default.
  243.  
  244.       See also: setAutoResize().
  245.  
  246.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::cccclllliiiicccckkkkeeeedddd (((()))) [[[[ssssiiiiggggnnnnaaaallll]]]]
  247.       This signal is emitted when the button is activated (i.e.
  248.       first    pressed    down and then released when the    mouse cursor
  249.       is inside the    button).
  250.  
  251.       See also: pressed(), released() and toggled().
  252.  
  253.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::ddddrrrraaaawwwwBBBBuuuuttttttttoooonnnn ((((    QQQQPPPPaaaaiiiinnnntttteeeerrrr **** )))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
  254.       Draws    the button. The    default    implementation does nothing.
  255.  
  256.       This virtual function    is reimplemented by subclasses to draw
  257.       real buttons.
  258.  
  259.  
  260.  
  261.      Page 4                         (printed 9/22/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))
  269.  
  270.  
  271.  
  272.       Reimplemented    in QToolButton,    QPushButton, QCheckBox and
  273.       QRadioButton.
  274.  
  275.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::ddddrrrraaaawwwwBBBBuuuuttttttttoooonnnnLLLLaaaabbbbeeeellll (((( QQQQPPPPaaaaiiiinnnntttteeeerrrr ****    )))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
  276.       Draws    the button text    or pixmap. The default implementation
  277.       does nothing.
  278.  
  279.       This virtual function    is reimplemented by subclasses to draw
  280.       real buttons.
  281.  
  282.       Reimplemented    in QToolButton,    QPushButton, QCheckBox and
  283.       QRadioButton.
  284.  
  285.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::eeeennnnaaaabbbblllleeeeddddCCCChhhhaaaannnnggggeeee (((( bbbboooooooollll    eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
  286.       Reimplemented    for internal reasons; the API is not affected.
  287.  
  288.       Reimplemented    from QWidget.
  289.  
  290.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::ffffooooccccuuuussssIIIInnnnEEEEvvvveeeennnntttt    (((( QQQQFFFFooooccccuuuussssEEEEvvvveeeennnntttt ****    )))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
  291.       Handles focus    in events for the button.
  292.  
  293.       See also: focusOutEvent().
  294.  
  295.       Reimplemented    from QWidget.
  296.  
  297.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::ffffooooccccuuuussssOOOOuuuuttttEEEEvvvveeeennnntttt (((( QQQQFFFFooooccccuuuussssEEEEvvvveeeennnntttt **** )))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
  298.       Handles focus    out events for the button.
  299.  
  300.       See also: focusInEvent().
  301.  
  302.       Reimplemented    from QWidget.
  303.  
  304.      bbbboooooooollll QQQQBBBBuuuuttttttttoooonnnn::::::::hhhhiiiittttBBBBuuuuttttttttoooonnnn (((( ccccoooonnnnsssstttt QQQQPPPPooooiiiinnnntttt &&&& ppppoooossss )))) ccccoooonnnnsssstttt [[[[vvvviiiirrrrttttuuuuaaaallll
  305.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  306.       Returns TRUE if _p_o_s is inside    the widget rectangle, or FALSE
  307.       if it    is outside.
  308.  
  309.       This virtual function    is reimplemented by subclasses.
  310.  
  311.       Reimplemented    in QRadioButton.
  312.  
  313.      bbbboooooooollll QQQQBBBBuuuuttttttttoooonnnn::::::::iiiissssDDDDoooowwwwnnnn (((()))) ccccoooonnnnsssstttt
  314.       Returns TRUE if the button pressed down, or FALSE if it is
  315.       standing up.
  316.  
  317.       See also: setDown().
  318.  
  319.       Examples:  tictac/tictac.cpp
  320.  
  321.      bbbboooooooollll QQQQBBBBuuuuttttttttoooonnnn::::::::iiiissssOOOOnnnn    (((()))) ccccoooonnnnsssstttt
  322.       Returns TRUE if this toggle button is    switched on, or    FALSE
  323.       if it    is switched off.
  324.  
  325.  
  326.  
  327.      Page 5                         (printed 9/22/98)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))
  335.  
  336.  
  337.  
  338.       See also: setOn() and    toggleButton().
  339.  
  340.       Examples:  qmag/qmag.cpp
  341.  
  342.      bbbboooooooollll QQQQBBBBuuuuttttttttoooonnnn::::::::iiiissssTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn (((()))) ccccoooonnnnsssstttt
  343.       Returns TRUE if the button is    a toggle button.
  344.  
  345.       See also: setToggleButton().
  346.  
  347.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::kkkkeeeeyyyyPPPPrrrreeeessssssssEEEEvvvveeeennnntttt (((( QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
  348.       Handles keyboard events for the button.
  349.  
  350.       Space    is the only key    that has any effect; it    calls
  351.       animateClick().
  352.  
  353.       Reimplemented    from QWidget.
  354.  
  355.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::mmmmoooouuuusssseeeeMMMMoooovvvveeeeEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt    **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  356.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  357.       Handles mouse    move events for    the button.
  358.  
  359.       See also: mousePressEvent() and mouseReleaseEvent().
  360.  
  361.       Reimplemented    from QWidget.
  362.  
  363.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::mmmmoooouuuusssseeeePPPPrrrreeeessssssssEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  364.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  365.       Handles mouse    press events for the button.
  366.  
  367.       See also: mouseReleaseEvent().
  368.  
  369.       Reimplemented    from QWidget.
  370.  
  371.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::mmmmoooouuuusssseeeeRRRReeeelllleeeeaaaasssseeeeEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  372.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  373.       Handles mouse    release    events for the button.
  374.  
  375.       See also: mousePressEvent().
  376.  
  377.       Reimplemented    from QWidget.
  378.  
  379.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::ppppaaaaiiiinnnnttttEEEEvvvveeeennnntttt ((((    QQQQPPPPaaaaiiiinnnnttttEEEEvvvveeeennnntttt **** eeeevvvveeeennnntttt )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  380.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  381.       Handles paint    events for the button.
  382.  
  383.       Opens    the painter on the button and calls drawButton().
  384.  
  385.       Reimplemented    from QWidget.
  386.  
  387.      ccccoooonnnnsssstttt QQQQPPPPiiiixxxxmmmmaaaapppp **** QQQQBBBBuuuuttttttttoooonnnn::::::::ppppiiiixxxxmmmmaaaapppp (((())))    ccccoooonnnnsssstttt
  388.       Returns the button pixmap, or    0 if the button    has no pixmap.
  389.  
  390.  
  391.  
  392.  
  393.      Page 6                         (printed 9/22/98)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))
  401.  
  402.  
  403.  
  404.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::pppprrrreeeesssssssseeeedddd (((()))) [[[[ssssiiiiggggnnnnaaaallll]]]]
  405.       This signal is emitted when the button is pressed down.
  406.  
  407.       See also: released() and clicked().
  408.  
  409.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::rrrreeeelllleeeeaaaasssseeeedddd (((()))) [[[[ssssiiiiggggnnnnaaaallll]]]]
  410.       This signal is emitted when the button is released.
  411.  
  412.       See also: pressed(), clicked() and toggled().
  413.  
  414.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::sssseeeettttAAAAcccccccceeeellll (((( iiiinnnntttt kkkkeeeeyyyy ))))
  415.       Specifies an accelerator _k_e_y for the button, or removes the
  416.       accelerator if _k_e_y is    0.
  417.  
  418.       Setting a button text    containing a shortcut character    (for
  419.       example the 'x' in E&xit) automatically defines an
  420.       ALT+letter accelerator for the button. You only need to call
  421.       this function    in order to specify a custom accelerator.
  422.  
  423.       Example:
  424.  
  425.           QPushButton *b1 =    new QPushButton;
  426.           b1->setText( "&OK" );          // sets accel    ALT+'O'
  427.           QPushButton *b2 =    new QPushButton;
  428.           b2->setPixmap( printIcon );      // pixmap instead of text
  429.           b2->setAccel( CTRL+'P' );          // custom accel
  430.  
  431.       See also: accel(), setText() and QAccel.
  432.  
  433.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::sssseeeettttAAAAuuuuttttooooRRRReeeeppppeeeeaaaatttt (((( bbbboooooooollll    eeeennnnaaaabbbblllleeee ))))
  434.       Turns    on auto-repeat for the button if _e_n_a_b_l_e    is TRUE, or
  435.       turns    it off if _e_n_a_b_l_e is FALSE.
  436.  
  437.       When auto-repeat is enabled, the clicked() signal is emitted
  438.       at regular intervals while the buttons is down.
  439.  
  440.       setAutoRepeat() has no effect    for toggle buttons.
  441.  
  442.       See also: isDown(), autoRepeat() and clicked().
  443.  
  444.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::sssseeeettttAAAAuuuuttttooooRRRReeeessssiiiizzzzeeee (((( bbbboooooooollll    eeeennnnaaaabbbblllleeee ))))
  445.       Enables auto-resizing    if _e_n_a_b_l_e is TRUE, or disables it if
  446.       _e_n_a_b_l_e is FALSE.
  447.  
  448.       When auto-resizing is    enabled, the button will resize    itself
  449.       whenever the contents    change.
  450.  
  451.       See also: autoResize() and adjustSize().
  452.  
  453.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::sssseeeettttDDDDoooowwwwnnnn (((( bbbboooooooollll eeeennnnaaaabbbblllleeee ))))
  454.       Sets the state of the    button to pressed down if _e_n_a_b_l_e is
  455.       TRUE or to standing up if _e_n_a_b_l_e is FALSE.
  456.  
  457.  
  458.  
  459.      Page 7                         (printed 9/22/98)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))
  467.  
  468.  
  469.  
  470.       If the button    is a toggle button, it is _n_o_t toggled. Call
  471.       toggle() as well if you need to do that. The pressed() and
  472.       released() signals are not emitted by    this function.
  473.  
  474.       This method is provided in case you need to override the
  475.       mouse    event handlers.
  476.  
  477.       See also: isDown(), setOn(), toggle()    and toggled().
  478.  
  479.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::sssseeeettttOOOOnnnn (((( bbbboooooooollll    eeeennnnaaaabbbblllleeee )))) [[[[pppprrrrooootttteeeecccctttteeeedddd]]]]
  480.       Switches a toggle button on if _e_n_a_b_l_e    is TRUE    or off if
  481.       _e_n_a_b_l_e is FALSE. This    function should    be called only for
  482.       toggle buttons.
  483.  
  484.       See also: isOn() and toggleButton().
  485.  
  486.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::sssseeeettttPPPPiiiixxxxmmmmaaaapppp (((( ccccoooonnnnsssstttt QQQQPPPPiiiixxxxmmmmaaaapppp &&&& ppppiiiixxxxmmmmaaaapppp ))))
  487.       Sets the button to display _p_i_x_m_a_p and    repaints at once.
  488.  
  489.       If _p_i_x_m_a_p is monochrome (i.e.    it is a    QBitmap    or its depth
  490.       is 1)    and it does not    have a mask, this function sets    the
  491.       pixmap to be its own mask. The purpose of this is to draw
  492.       transparent bitmaps, which is    important for e.g. toggle
  493.       buttons.
  494.  
  495.       The button resizes itself if auto-resizing is    enabled,
  496.       changes its minimum size if autoMinimumSize()    is enabled,
  497.       and always disables any accelerator.
  498.  
  499.       See also: pixmap(), setText(), setAutoMinimumSize(),
  500.       setAutoResize(), setAccel() and QPixmap::mask().
  501.  
  502.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::sssseeeettttTTTTeeeexxxxtttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr    **** tttteeeexxxxtttt ))))
  503.       Sets the button to display _t_e_x_t and repaints
  504.  
  505.       The button resizes itself if auto-resizing is    enabled,
  506.       changes its minimum size if autoMinimumSize()    is enabled,
  507.       and sets the appropriate accelerator.
  508.  
  509.       See also: text(), setPixmap(), setAutoMinimumSize(),
  510.       setAutoResize(), setAccel() and QPixmap::mask().
  511.  
  512.       Examples:  xform/xform.cpp layout/layout.cpp qmag/qmag.cpp
  513.       widgets/widgets.cpp
  514.  
  515.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::sssseeeettttTTTToooogggggggglllleeeeBBBBuuuuttttttttoooonnnn (((( bbbboooooooollll eeeennnnaaaabbbblllleeee )))) [[[[pppprrrrooootttteeeecccctttteeeedddd]]]]
  516.       Makes    the button a toggle button if _e_n_a_b_l_e is    TRUE, or a
  517.       normal button    if _e_n_a_b_l_e is FALSE.
  518.  
  519.       Note that this function is protected.    It is called from
  520.       subclasses to    enable the toggle functionality. QCheckBox and
  521.       QRadioButton are toggle buttons. QPushButton is initially
  522.  
  523.  
  524.  
  525.      Page 8                         (printed 9/22/98)
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))      QQQQBBBBuuuuttttttttoooonnnn((((3333qqqqtttt))))
  533.  
  534.  
  535.  
  536.       not a    toggle button, but QPushButton::setToggleButton() can
  537.       be called to create toggle buttons.
  538.  
  539.       See also: isToggleButton().
  540.  
  541.      ccccoooonnnnsssstttt cccchhhhaaaarrrr    **** QQQQBBBBuuuuttttttttoooonnnn::::::::tttteeeexxxxtttt    (((()))) ccccoooonnnnsssstttt
  542.       Returns the button text, or 0    if the button has no text.
  543.  
  544.       See also: setText().
  545.  
  546.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::ttttoooogggggggglllleeee (((()))) [[[[ssssllllooootttt]]]]
  547.       if this is a toggle button, toggles it.
  548.  
  549.      vvvvooooiiiidddd QQQQBBBBuuuuttttttttoooonnnn::::::::ttttoooogggggggglllleeeedddd (((( bbbboooooooollll oooonnnn )))) [[[[ssssiiiiggggnnnnaaaallll]]]]
  550.       This signal is emitted whenever a toggle button changes
  551.       status. _o_n is    TRUE if    the button is on, or FALSE if the
  552.       button is off.
  553.  
  554.       This may be the result of a user action, toggle() slot
  555.       activation, or because setOn() was called.
  556.  
  557.       See also:  clicked().
  558.  
  559.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  560.       hhhhttttttttpppp::::////////wwwwwwwwwwww....ttttrrrroooollllllll....nnnnoooo////qqqqtttt////qqqqbbbbuuuuttttttttoooonnnn....hhhhttttmmmmllll
  561.  
  562.      CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
  563.       Copyright 1992-1997 Troll Tech AS.  See the LICENSE file
  564.       included in the distribution for a complete license
  565.       statement.
  566.  
  567.      AAAAUUUUTTTTHHHHOOOORRRR
  568.       Generated automatically from the source code.
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.      Page 9                         (printed 9/22/98)
  592.  
  593.  
  594.  
  595.